Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Objects /
Chapter 3 - Style Objects / About Style Objects


Style Object Properties

The interface to style objects is entirely procedural. You manipulate the information in a style object by modifying its properties using QuickDraw GX functions.

Style objects have 22 accessible properties, as shown in Figure 3-1. The properties are grouped into columns that reflect the category of shape that uses them. Note that, because a style is an object and not a data structure, the order of the properties as shown in Figure 3-1 is completely arbitrary. Properties in italics are references to other objects.

Figure 3-1 The style object and its properties

Seven properties pertain mostly to style objects associated with graphic shapes:

Thirteen of the style object's properties pertain only to styles associated with typographic shapes. The portion of a typographic shape to which a style object applies is called a style run. The first seven typographic style properties apply, for the most part, to all typographic shapes:

The remaining six of the thirteen typographic style properties apply to layout shapes only:

The two remaining style object properties pertain to all styles, for all shapes:

QuickDraw GX provides functions to manipulate each of these style object properties. Table 3-1 shows where to go for that information, depending on the type of shape object that uses the style.
Table 3-1 Where to go for information on style object properties and functions
For style objects used by...Look in...
Graphic shapesGeometric styles chapter of QuickDraw GX Graphics
All typographic shapesTypographic styles chapter of QuickDraw GX Typography

(For style attributes that can apply to typographic
shapes, see also the geometric styles chapter of QuickDraw GX Graphics)

Layout shapes onlyLayout styles and layout line control chapters of QuickDraw GX Typography
All shapesThis chapter

As Table 3-1 shows, most style-object properties and functions are described elsewhere. Only those properties that pertain to all shapes--the owner count and tag list, and the functions that manipulate them--are described in this chapter.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996